//
//  GYUserInfo.h
//  Visitor
//
//  Created by x on 2017/9/28.
//  Copyright © 2017年 HLB. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface GYUserInfo : NSObject<NSCoding>

/** 用户账户名 */
@property (nonatomic, strong) NSString *account;

/** 用户id */
@property (nonatomic, assign)int id;

/** 用户名字 */
@property (nonatomic, strong) NSString *name;

/** 机构码 */
@property (nonatomic, strong) NSString *organizationName;

/** 用户手机号码 */
@property (nonatomic, strong) NSString *phone;

/** 请求key */
@property (nonatomic, strong) NSString *requestKey;

/** 返回码 */
@property (nonatomic, assign)int status;


- (instancetype)initWithDic:(NSDictionary *)dic;

/**
 保存用户信息
 */
- (void)saveUserInfo;

/**
 移除个人信息

 @return <#return value description#>
 */
+ (BOOL)removeUserInfo;

/**
 加载用户信息
 */
+ (GYUserInfo *)loadUserInfo;

@end
